package com.hx.learn.mybatis.model;

import java.util.List;

/**
 * @author jxlgcmh
 * @date 2020-05-16 00:29
 * @description 年级
 */
public class Grade {
    /**
     * 年级编号
     */
    private Integer gid;
    /**
     * 年级名称
     */
    private String gname;

    /**
     * 一个年级对应多个老师教
     */
    private List<Teacher> teachers;

    public Grade() {
    }

    public Grade(Integer gid, String gname) {
        this.gid = gid;
        this.gname = gname;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }
}
